const obj = require('../../utils')
// console.log(obj);
document.querySelector(".btn").addEventListener("click", () => {
  const phone = document.querySelector(".login-form [name=mobile]").value;
  const code = document.querySelector(".login-form [name=password]").value;
  console.log(data)
  if (data.mobile.length !== 11) {
    myAlert(false, '手机号长度必须是十一位')
    return
  }
  if (data.code.length !== 6) {
    myAlert(false, '验证码长度必须是十一位')
    return
  }
  if (!obj.phone(phone)) {
    console.log("手机号长度必须是十一位");
    return;
  }
  if (!obj.code(code)) {
    console.log("密码必须要六位");
    return;
  } else console.log("登录成功。。。");
});
import './server.css'
import 'bootstrap/dist/css/bootstrap.min.css'
import './server.less'
import imgOBJ from './assets/dxyq.jpg'
const theImg = document.createElement('img');
theImg.src = imgOBJ;
document.querySelector(".container").appendChild(theImg);